<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Order;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Order
 *
 * @property int $id
 * @property string $order_number
 * @property float $pay_money
 * @property Carbon $pay_at
 * @property float $order_money
 * @property int $user_coupon_id
 * @property int $coupon_id
 * @property float $coupon_money
 * @property float $all_coupon_money
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @property string $deleted_at
 *
 * @package App\Models
 */
class Order extends Model
{
	use SoftDeletes;
	protected $table = 'orders';

	protected $casts = [
		'pay_money' => 'float',
		'order_money' => 'float',
		'user_coupon_id' => 'int',
		'coupon_id' => 'int',
		'coupon_money' => 'float',
		'all_coupon_money' => 'float'
	];

	protected $dates = [
		'pay_at'
	];

	protected $fillable = [
		'order_number',
		'pay_money',
		'pay_at',
		'order_money',
		'user_coupon_id',
		'coupon_id',
		'coupon_money',
		'all_coupon_money'
	];
}
